package qlsl.androiddesign.adapter.subadapter;

import java.util.List;

import com.qlsl.androiddesign.kuaiwa.R;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import qlsl.androiddesign.activity.baseactivity.BaseActivity;
import qlsl.androiddesign.adapter.baseadapter.BaseAdapter;

public class HomeBottomAdapter extends BaseAdapter<Integer> {

	public HomeBottomAdapter(BaseActivity activity,
			List<Integer> list) {
		super(activity, list);
	}

	public View getView(int position, View convertView, ViewGroup parent) {

		convertView = getItemView(convertView, R.layout.common_image);

		ImageView iv_icon = getView(convertView, R.id.common_image);

		Integer icon = getItem(position);

		iv_icon.setImageResource(icon);

		return convertView;
	}
}
